<template>
  <div>
     <div class="dybox">
          <div class="dybox1" @click="toDel">
              <img src="" alt="">
              <p>xxxxxxx</p>
          </div>
          <div class="dybox1">
              <img src="" alt="">
              <p>xxxxxxxxxxxxxx</p>
          </div>
          <div class="dybox1">
              <img src="" alt="">
              <p>xxxxxxx</p>
          </div>
          <div class="dybox1">
              <img src="" alt="">
              <p>xxxxxxx</p>
          </div>
          <div class="dybox1">
              <img src="" alt="">
              <p>xxxxxxx</p>
          </div>
          <div class="dybox1">
              <img src="" alt="">
              <p>xxxxxxx</p>
          </div>
        </div>
         <Page :total="total" :PageNumber.sync="PageNumber" :PageSize.sync="PageSize" @current-change="changeCurrentPage"
        @size-change="handleSizeChange">
      </Page> 
  </div>
</template>

<script>
import Page from '../components/page.vue'
export default {
     components: {
      Page
    },
    data() {
    return {
      activeName: "first",
        PageNumber: 1,
        PageSize: 20,
        total: 50,
    };

  },
    methods:{
      //改变当前页数
    changeCurrentPage(val) {
      console.log(val);
    },
    //改变每页显示条数
    handleSizeChange(val) {
      console.log(val);
    },
    toDel(){
       this.$router.push("/home/vodiodeal")
    }
  }

}
</script>

<style lang="scss" scoped>
.dybox{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  .dybox1{
    padding: 20px;
    img{
      width: 180px;
      height: 220px;
    }
    p{
       margin: 0;
      height: 40px;
    line-height: 40px;
     width: 180px;
  overflow: hidden;
  white-space: nowrap;

  text-overflow: ellipsis;

  -o-text-overflow: ellipsis;
    }
  }
}
</style>